import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String s1 = sc.next();
        int[] ch = new int[s.length()+s1.length()];
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < s.length(); i++) {
            for (int j = 0; j < s1.length(); j++) {
                ch[j+i]+= Integer.valueOf(s.charAt(i)-'0')*Integer.valueOf(s1.charAt(j)-'0');

            }

        }
        int len = ch.length-1;
        int temp=0;
       while (temp!=0||len>=0) {
           temp=ch[len--]+temp;
           sb.append((char)(temp%10+'0'));
           temp/=10;

       }
       sb=sb.reverse();
       if(sb.length()>1&&sb.charAt(sb.length()-1)=='0') {
           sb.deleteCharAt(sb.length()-1);
       }
        System.out.println(sb.toString());

    }
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String s1 = sc.next();
       StringBuffer sb = new StringBuffer();
        int i = s.length()-1;
        int j= s1.length()-1;
        int temp = 0;
   while (temp!=0||i>=0||j>=0) {
      if(i>=0){
          temp+= Integer.valueOf(s.charAt(i)-'0');
          System.out.println(temp);
          i--;
      }
       if(j>=0){
           temp+= Integer.valueOf(s1.charAt(j)-'0');;
           j--;
       }
       sb.append((char)(temp%10+'0'));


       temp/=10;
   }


        System.out.println(sb.reverse().toString());
    }
}
